package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TaskAssignmentTrackingMapper;
import com.ruoyi.system.domain.TaskAssignmentTracking;
import com.ruoyi.system.service.ITaskAssignmentTrackingService;

/**
 * taskService业务层处理
 * 
 * @author alex
 * @date 2025-07-17
 */
@Service
public class TaskAssignmentTrackingServiceImpl implements ITaskAssignmentTrackingService 
{
    @Autowired
    private TaskAssignmentTrackingMapper taskAssignmentTrackingMapper;

    /**
     * 查询task
     * 
     * @param id task主键
     * @return task
     */
    @Override
    public TaskAssignmentTracking selectTaskAssignmentTrackingById(Long id)
    {
        return taskAssignmentTrackingMapper.selectTaskAssignmentTrackingById(id);
    }

    /**
     * 查询task列表
     * 
     * @param taskAssignmentTracking task
     * @return task
     */
    @Override
    public List<TaskAssignmentTracking> selectTaskAssignmentTrackingList(TaskAssignmentTracking taskAssignmentTracking)
    {
        return taskAssignmentTrackingMapper.selectTaskAssignmentTrackingList(taskAssignmentTracking);
    }

    /**
     * 新增task
     * 
     * @param taskAssignmentTracking task
     * @return 结果
     */
    @Override
    public int insertTaskAssignmentTracking(TaskAssignmentTracking taskAssignmentTracking)
    {
        taskAssignmentTracking.setCreateTime(DateUtils.getNowDate());
        return taskAssignmentTrackingMapper.insertTaskAssignmentTracking(taskAssignmentTracking);
    }

    /**
     * 修改task
     * 
     * @param taskAssignmentTracking task
     * @return 结果
     */
    @Override
    public int updateTaskAssignmentTracking(TaskAssignmentTracking taskAssignmentTracking)
    {
        taskAssignmentTracking.setUpdateTime(DateUtils.getNowDate());
        return taskAssignmentTrackingMapper.updateTaskAssignmentTracking(taskAssignmentTracking);
    }

    /**
     * 批量删除task
     * 
     * @param ids 需要删除的task主键
     * @return 结果
     */
    @Override
    public int deleteTaskAssignmentTrackingByIds(Long[] ids)
    {
        return taskAssignmentTrackingMapper.deleteTaskAssignmentTrackingByIds(ids);
    }

    /**
     * 删除task信息
     * 
     * @param id task主键
     * @return 结果
     */
    @Override
    public int deleteTaskAssignmentTrackingById(Long id)
    {
        return taskAssignmentTrackingMapper.deleteTaskAssignmentTrackingById(id);
    }
}
